starter.controller('orderToPayController', function($rootScope,$state,$ionicPopup,$timeout,$scope,Page, localStore,$location) {


    var orderId = $state.params.orderId;
    if(orderId == undefined || orderId == "") {
        Page.notice("非法请求!");
        return;
    }
    Page.ajaxPost("app/order/details.do",{orderId : orderId},function(resp){
        $scope.order = resp.data;
        Page.ajaxPost("line/stops.do",{lineId : $scope.order.lineId},function(resp){
            $scope.stopList = resp.data;
        });
    });

    $scope.payNow = function(orderId) {
        $state.go("order_pay",{orderId : orderId});
    };

    $scope.backGo = function() {
        $state.go("orders");
    };

});